package com.beizhen.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.beizhen.demo.dao.StuAdministrativeDivisionDao;
import com.beizhen.demo.entity.StuAdministrativeDivision;
import com.beizhen.demo.service.StuAdministrativeDivisionService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
*  业务逻辑接口的实现类
*/
@Service
public class StuAdministrativeDivisionServiceImpl extends ServiceImpl<StuAdministrativeDivisionDao, StuAdministrativeDivision> implements StuAdministrativeDivisionService {

    @Autowired
    private StuAdministrativeDivisionDao stuAdministrativeDivisionDao;

    @Override
    public List<StuAdministrativeDivision> getOneAreaInfo() {
        return stuAdministrativeDivisionDao.getOneAreaInfo();
    }

    @Override
    public List<StuAdministrativeDivision> getTwoAreaInfo(String code) {
        return stuAdministrativeDivisionDao.getTwoAreaInfo(code);
    }
}
